 import java.util.Hashtable;
 public class MyfruitStore{

    private static Hashtable fruittable=null;
    private static MyfruitStore fruitstore=null;
    private MyfruitStore()
    {
        fruittable=new Hashtable<Integer,MyFruit>();
    }
    public static MyfruitStore Getfruitstore()
    {
        if(fruittable==null)
        {
            fruitStore=new MyfruitStore();
        }
        return fruitStore;
    }
    public static void Add(Integer key,MyFruit fruit)
    {
        fruittable.put(key,fruit);
    }
    public static MyFruit Get(Integer key)
    {
        MyFruit fruit = (MyFruit)fruittable.get(key)
        return (MyFruit)fruit.clone();
    }
}